<!-- Copyright (c) 2022 渝州大数据实验室
 *
 * Lanius is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 *     http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 -->
<!--
* @desc: 消息屏蔽弹出窗
* @fileName: DialogBanType.vue
* @author: zoujunjie
* @date: 2022-05-30
-->
<template>
  <el-button class="item" type="primary" :icon="Filter" @click="onButtonClick"
    >消息过滤</el-button
  >
  <el-dialog v-model="dialogVisible" title="消息屏蔽" :width="740">
    <div class="flex trees-container">
      <div class="col">
        <div class="title">接收消息类型</div>
        <el-scrollbar class="tree-container" :height="400"
          ><el-tree></el-tree
        ></el-scrollbar>
      </div>
      <div class="buttons flex">
        <el-button class="button" :icon="DArrowLeft"></el-button>
        <el-button class="button" :icon="DArrowRight"></el-button>
      </div>
      <div class="col">
        <div class="title">屏蔽消息类型</div>
        <el-scrollbar class="tree-container" :height="400"
          ><el-tree></el-tree
        ></el-scrollbar>
      </div>
    </div>
    <template #footer>
      <el-button size="large">确定</el-button>
    </template>
  </el-dialog>
</template>

<script lang="ts" setup>
import { Filter, DArrowLeft, DArrowRight } from "@element-plus/icons-vue";
import { ref } from "vue";

const dialogVisible = ref(false);

const onButtonClick = () => {
  dialogVisible.value = true;
};
</script>

<style lang="scss" scoped>
.trees-container {
  align-items: center;
  .col {
    width: 310px;
    .title {
      height: 30px;
      background-color: #f5f5f5;
      text-align: center;
      line-height: 30px;
      font-weight: 700;
      color: rgba($color: #000000, $alpha: 0.5);
      font-size: 14px;
    }
  }
  .buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 430px;
    width: 60px;
    .button {
      width: 30px;
      height: 30px;
      background-color: #f5f5f5;
      border: 0;
      border-radius: 0;
      margin: 0;
      margin-top: 10px;
    }
  }
}
</style>
